﻿using System;
using System.Collections.Generic;
using System.Linq;
using SqlSugar;
namespace Models
{
    /// <summary>
    /// 附件信息表
    ///</summary>
    [SugarTable("attachment")]
    public class Attachment
    {
        
     
        /// <summary>
        /// 备  注:附件ID
        /// 默认值:
        ///</summary>
        [SugarColumn(ColumnName="Id" ,IsPrimaryKey = true,IsIdentity = true) ]
        public int Id  { get; set;  } 
     
        /// <summary>
        /// 备  注:原始文件名
        /// 默认值:
        ///</summary>
        [SugarColumn(ColumnName="FileName" ) ]
        public string? FileName  { get; set;  } = null!;
     
        /// <summary>
        /// 备  注:系统生成的唯一文件名
        /// 默认值:
        ///</summary>
        [SugarColumn(ColumnName="FileUuid" ) ]
        public string? FileUuid  { get; set;  } = null!;
     
        /// <summary>
        /// 备  注:文件扩展名
        /// 默认值:
        ///</summary>
        [SugarColumn(ColumnName="FileExtension" ) ]
        public string? FileExtension  { get; set;  } = null!;
     
        /// <summary>
        /// 备  注:文件大小（字节）
        /// 默认值:
        ///</summary>
        [SugarColumn(ColumnName="FileSize" ) ]
        public long? FileSize  { get; set;  } 
     
        /// <summary>
        /// 备  注:MIME类型
        /// 默认值:
        ///</summary>
        [SugarColumn(ColumnName="ContentType" ) ]
        public string? ContentType  { get; set;  } = null!;
     
        /// <summary>
        /// 备  注:业务类型
        /// 默认值:
        ///</summary>
        [SugarColumn(ColumnName="BusinessType" ) ]
        public string? BusinessType  { get; set;  } = null!;
     
        /// <summary>
        /// 备  注:业务数据 ID
        /// 默认值:
        ///</summary>
        [SugarColumn(ColumnName="BusinessId" ) ]
        public string? BusinessId  { get; set;  } = null!;
     
        /// <summary>
        /// 备  注:存储路径
        /// 默认值:
        ///</summary>
        [SugarColumn(ColumnName="StoragePath" ) ]
        public string? StoragePath  { get; set;  } = null!;
     
        /// <summary>
        /// 备  注:上传时间
        /// 默认值:
        ///</summary>
        [SugarColumn(ColumnName="UploadTime" ) ]
        public DateTime UploadTime  { get; set;  } 
     
        /// <summary>
        /// 备  注:上传用户ID
        /// 默认值:
        ///</summary>
        [SugarColumn(ColumnName="UploadUserId" ) ]
        public string? UploadUserId  { get; set;  } 
     
      
     
        /// <summary>
        /// 备  注:扩展元数据（JSON格式）
        /// 默认值:
        ///</summary>
        [SugarColumn(ColumnName="Metadata" ) ]
        public string? Metadata  { get; set;  } 
    

    }
    
}